<%@page import="com.bringway.framework.util.DateUtils"%>
<%@page
	import="org.springframework.security.core.context.SecurityContextHolder"%>
<%@page import="com.bringway.global.domain.SysUserDetails"%>
<%@page import="com.bringway.global.domain.User"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>红点e贷服务管理系统</title>
<%
	SysUserDetails sysUserDetails = (SysUserDetails) SecurityContextHolder.getContext().getAuthentication()
			.getPrincipal();
	String gyh = "", username = "", roleId = "", roleName = "";
	if (null != sysUserDetails) {
		gyh = sysUserDetails.getGyh();
		username = sysUserDetails.getUsername();
		roleId = sysUserDetails.getRoleId();
		roleName = sysUserDetails.getRoleName();
	}
%>
<jsp:include page="/global/common.jsp" flush="true" />
<script type="text/javascript"
	src="<%=request.getContextPath()%>/pages/p2p/customer/posCode/insert/Main.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/pages/p2p/customer/posCode/insert/Add.js"></script>
	<script type="text/javascript" src="<%=request.getContextPath()%>/pages/p2p/customer/posCode/insert/View.js"></script>
<script type="text/javascript">
	var baseUrl = '<%=request.getContextPath()%>';
	var gyh = '<%=gyh%>';
	var username = '<%=username%>';
	var roleId = '<%=roleId%>';
	var roleName = '<%=roleName%>';
	var nowDate = '<%=DateUtils.getCurrentDataStr()%>';
	Ext.onReady(function() {
		new Ext.Viewport({
			layout : 'fit',
			border : false,
			items : [ new pages.p2p.customer.posCode.insert.Main() ]
		});
	})
</script>
</head>
<body>
</body>
</html>
